package com.shanzmoo.db.logistics.entity.query;

import cn.hutool.core.util.StrUtil;
import com.shanzmoo.base.annotation.IntIn;
import com.shanzmoo.base.bean.PageReqBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 发货单分页查询对象
 *
 * @author： Gzhao 2021/1/8
 */
@Data
@ApiModel("发货单分页查询对象")
public class DeliveryBillPageQuery extends PageReqBase {

    @ApiModelProperty("订单号")
    private String orderNo;

    @IntIn(values = {0,1,2,3}, allowNull = true)
    @ApiModelProperty("订单类型：0-门店订单，1-商城订单，2-售后订单，3-第三方订单")
    private Integer orderType;

    /**
     * 门店ID
     */
    private Integer outletId;

    public void setOrderNo(String orderNo) {
        this.orderNo = StrUtil.isNotBlank(orderNo) ? orderNo.trim() : null;
    }

}
